<template>
	<view class="container">
		<view class="person" @click="checkUserInfo()">
			<u-image width=140 height="140" shape="circle" :src="userImage" mode="">
			</u-image>
			<view class="user-name">
				暂未登录
			</view>
			<u-icon color="#ccc" name="arrow-right"></u-icon>
		</view>
		<view style="height: 20rpx; width: 100%"></view>
		<u-cell-group :border="false">
			<u-cell-item title="意见反馈" @click="navigateTo('/pages/mine/set/feedBack')"></u-cell-item>
			<u-cell-item :title="`关于${config.name}`" @click="navigateTo('/pages/mine/set/editionIntro')"></u-cell-item>
		</u-cell-group>
		<view class="submit" @click="quiteLoginOut">退出登录</view>
	</view>
</template>

<script>
	import config from "@/config/config";
	export default {
		data() {
			return {
				config,
				userImage: config.defaultUserPhoto,
			};
		},

		methods: {
			navigateTo(url) {
				uni.navigateTo({
					url: url,
				});
			},

			/**
			 * 退出登录
			 */
			quiteLoginOut() {
				console.log('退出登录')
			},

			checkUserInfo() {
				console.log('是否登录')
			},

		},

	};
</script>

<style lang='scss' scoped>
	.submit {
		height: 90rpx;
		line-height: 90rpx;
		text-align: center;
		margin-top: 90rpx;
		background: #fff;
		width: 100%;
		margin: 0 auto;
		color: $main-color;
	}

	.person {
		height: 208rpx;
		display: flex;
		padding: 0 20rpx;
		font-size: $font-base;
		justify-content: space-between;
		align-items: center;
		margin-bottom: 20rpx;

		.user-name {
			width: 500rpx;
			overflow: hidden;

			text-overflow: ellipsis;

			white-space: nowrap;
			margin-left: 30rpx;
			line-height: 2em;
			font-size: 34rpx;
		}
	}

	.u-cell {
		height: 110rpx;
		/* line-height: 110rpx; */
		padding: 0 20rpx;
		align-items: center;
		color: #333333;
	}

	/deep/ .u-cell__value {
		color: #cccccc !important;
	}

	/deep/ .u-cell__right-icon-wrap {
		color: #cccccc !important;
	}
</style>
